-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal/pkg/scorecard: access CRManifestOpt
correctly with --olm-deployed
#1565
internal/pkg/scorecard: access CRManifestOpt
correctly with --olm-deployed
#1565
Conversation
…etting and use []string when setting CRManifestOpt
CRManifestOpt
correctly with --olm-deployed
CRManifestOpt
correctly with --olm-deployed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add a line in the CHANGELOG for this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if err != nil { | ||
return nil, err | ||
} | ||
crFile, err := ioutil.TempFile("", "*.cr.yaml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the file *.cr.yaml
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The temp file names were in an annoying format before 😁. This format uses .cr.yaml
as a file extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…deployed` (operator-framework#1565) * internal/pkg/scorecard/scorecard.go: use viper.GetStringSlice() for getting and use []string when setting CRManifestOpt * CHANGELOG.md: update with scorecard cr-manifests bug fix
Description of the change: use
viper.GetStringSlice()
for getting and use[]string
when settingCRManifestOpt
with--olm-deployed
.Motivation for the change:
CRManifestOpt
is not accessed correctly when--olm-deployed
is set.